setImageResource

Sets a drawable as the content of this ImageView.

Allows the use of vector drawables when running on older versions of the platform.

Parameters

resId

the resource identifier of the drawable

See also

srcCompat